package net.tngou.tpage.action.my;

import java.io.IOException;

import javax.servlet.ServletException;


import net.tngou.tpage.action.BaseAction;
import net.tngou.tpage.pojo.Basedata;

/**
 * 基础数据
 * @author tngou@tngou.net
 *
 */
public class BasedataAction extends BaseAction {

	/**
	 * 公有数据
	 */
	@Override
	public void execute() throws ServletException, IOException {
		
		printFreemarker("my/basedata.ftl", root);
	}
	
	
	/**
	 * 私有数据
	 */
	public void my() {
		printFreemarker("my/basedata_my.ftl", root);
	}
	
	/**
	 * 添加成员
	 */
	public void add() {
		
		if(ask.getId()>0){
			Basedata bean = new Basedata().get(ask.getId());//上级ID
			root.put("basedata", bean);
		}
		printFreemarker("my/basedata_add.ftl", root);
	}
}
